/**
 * Created by shbs on 06/06/2018.
 */
var Product={};
Product.init=function () {
    layui.use(['form',"laydate"], function(){
        var form = layui.form;
        var laydate = layui.laydate;
        laydate.render({
            elem: '#Promotionstart' //指定元素
        });laydate.render({
            elem: '#Promotionend' //指定元素
        });

        var $ =layui.$;
        $("#submit").click(function () {
            Product.getVal();
        })

    });


};

Product.getVal=function () {
    layui.use(['form',"laydate"], function(){
        var form = layui.form;
        var laydate = layui.laydate;
        var $ =layui.$;
        //文本框取值
        var username = $(":input[name='username']").val();

        console.log(username)
        //下拉框取值
        var belongproduct = $("select[name='belongproduct']").val();
        console.log(belongproduct)

    });




};


(function () {
    Product.init()
})();